package sqldbManagement.dblibrary.cj.model;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

public enum Code {

    BOOLEAN("Boolean",boolean.class),
    BYTE("Byte",byte.class),
    SHORT("Short",short.class),
    INT("Int",int.class),
    LONG("Long",long.class),
    FLOAT("Float",float.class),
    DOUBLE("Double",double.class),
    STRING("String",String.class),
    BIG_DECIMAL("BigDecimal", BigDecimal.class),
    DATE("Date", Date.class),
    TIMESTAMP("Timestamp", Timestamp.class);

    private String code;
    private Class aClass;

    Code(String code, Class clazz) {
        this.code = "set"+code;
        aClass = clazz;
    }

    public String getCode() {
        return code;
    }

    public Class getAClass() {
        return aClass;
    }
}
